package com.gragra.innerProducts.tests;
import static org.junit.Assert.*;
import com.gragra.innerProducts.InnerForMultiset;
import org.junit.Test;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;
/**
 * @author Christoph Teichmann
 * @version 0.1
 */
public class TestInnerForMultiset
{
	/**
	 * Test method for {@link innerProducts.InnerForMultiset#make(com.google.common.collect.Multiset, com.google.common.collect.Multiset)}.
	 */
	@Test
	public void testMake()
	{
		Multiset<Integer> one = HashMultiset.create();
		Multiset<Integer> two = HashMultiset.create();
		one.add(1);
		one.add(1);
		one.add(1);
		one.add(2);
		one.add(2);
		one.add(3);
		two.add(1);
		two.add(1);
		two.add(1);
		two.add(1);
		two.add(2);
		two.add(2);
		two.add(2);
		assertEquals(InnerForMultiset.make(one, two),18.0,0.001);
	}
}